package charpter11.lynx;

import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class Seventeen {
	public static void main(String[] args){
		Map<String,One> gerbils = new HashMap<String,One>();
		gerbils.put("Micky", new One());
		gerbils.put("Minny", new One());
		
		Iterator<String> it = gerbils.keySet().iterator();
		
		while (it.hasNext()){
			String name = it.next();
			System.out.println(name);
			gerbils.get(name).hop();
		}
	}
}
